﻿using System;
using Vibrant.InfluxDB.Client;

namespace AccelerateSensor.Service.DbProxy.InfluxDb.Models
{
    public class NodeData
    {
        [InfluxTimestamp]
        public DateTime Timestamp { get; set; }

        /// <summary>
        /// 节点编号
        /// </summary>
        [InfluxTag("NodeUuid")]
        public string NodeUuid { get; set; }

        /// <summary>
        /// 采集类型，0：加速度波形；1：加速度均值，2：倾角 3：速度波
        /// </summary>
        [InfluxField("AcquireDataType")]
        public int AcquireDataType { get; set; }

        /// <summary>
        /// 数据通道个数
        /// </summary>
        [InfluxField("ChanNum")]
        public int ChanNum { get; set; }

        /// <summary>
        /// 采样率
        /// </summary>
        [InfluxField("SampleRate")]
        public int SampleRate { get; set; }

        /// <summary>
        /// 数据通道名称
        /// </summary>
        [InfluxField("ChannelNames")]
        public string ChannelNames { get; set; }

        /// <summary>
        /// CH0数据
        /// </summary>
        [InfluxField("Ch0Values")]
        public string Ch0Values { get; set; }

        /// <summary>
        /// CH1数据
        /// </summary>
        [InfluxField("Ch1Values")]
        public string Ch1Values { get; set; }

        /// <summary>
        /// CH2数据
        /// </summary>
        [InfluxField("Ch2Values")]
        public string Ch2Values { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [InfluxField("UpdateTime")]
        public DateTime UpdateTime { get; set; }
    }
}
